package foodtable;

import com.andro.chansung.R;

import android.app.ActionBar;
import android.app.Activity;
import android.app.ActionBar.Tab;
import android.os.Bundle;

public class FoodTableActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.food_root_layout);
		
		ActionBar actionBar = getActionBar();
		actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
		actionBar.setDisplayShowHomeEnabled(false);
		actionBar.setDisplayShowTitleEnabled(false);
		
		Tab tab = actionBar.newTab()
						   .setText("늘빛관")
						   .setTabListener(new TabListener<DainFoodTableFragment>(this, 
								   											   	"dain", 
								   											   	DainFoodTableFragment.class));
		actionBar.addTab(tab);
		
		tab		= actionBar.newTab()
				   .setText("A동")
				   .setTabListener(new TabListener<ADongFoodTableFragment>(this, 
						   												   "ADong", 
						   												   ADongFoodTableFragment.class));
		actionBar.addTab(tab);
		
		tab		= actionBar.newTab()
						   .setText("인덕재")
						   .setTabListener(new TabListener<IndukFoodTableFragment>(this, 
								   												   "induk", 
								   												   IndukFoodTableFragment.class));
		actionBar.addTab(tab);
		
		tab		= actionBar.newTab()
						   .setText("인정관")
						   .setTabListener(new TabListener<InjungFoodTableFragment>(this,
								   													"injung", 
								   													InjungFoodTableFragment.class));
		actionBar.addTab(tab);
	}
}